<?php
namespace common\service;

/**
 * 数据库状态常量类
 * @author Zenglai
 * @date 2018/05/07
 */
class ConstatService {

    //后台管理员用户状态
    const ADMIN_USER_STATUS_ENABLE  = 1; //1-可用
    const ADMIN_USER_STATUS_DISABLE = 0; //0-禁用
    //角色对应类型
    const ROLE_TO_TYPEID = [
        "管理员"   => 1,
        "普通员工" => 2,
    ] ;

    //管理员
    CONST ROLE_MANAGER          = 1 ;
    //普通员工
    CONST ROLE_GENERAL          = 2 ;

    //反馈状态-未处理
    CONST FEED_STATIC_NOT_DEAL = 1 ;
    //反馈状态-处理中
    CONST FEED_STATIC_DEALING  = 2 ;
    //反馈状态-已处理
    CONST FEED_STATIC_DEALED   = 3 ;

    //审核状态-未审核
    CONST FEED_VERIFY_NOT_VERIFY = 1 ;
    //审核状态-已审核
    CONST FEED_VERIFY_VERIFYED = 2 ;

    //管理员
    CONST ADMIN_USER_TYPE_ID_MANAGER = 1 ;
    //超级管理员
    CONST ADMIN_USER_TYPE_ID_SUPER_ADMIN = 88 ;
    //普通员工
    CONST ADMIN_USER_TYPE_ID_GENERAL = 2 ;

    //评价启用
    CONST EVALU_STATUS_ENABLE = 1 ;
    //评价不启用
    CONST EVALU_STATUS_DISABLE =2 ;


    //反馈状态
    CONST FEED_STATIC_ARR = [
        self::FEED_STATIC_NOT_DEAL => "未处理",
        self::FEED_STATIC_DEALING  => "处理中",
        self::FEED_STATIC_DEALED   => "已处理",
    ] ;

    //反馈状态-颜色
    CONST FEED_STATIC_COLOR_ARR = [
        self::FEED_STATIC_NOT_DEAL => "<span style='color: red'>未处理</span>",
        self::FEED_STATIC_DEALING  => "<span style='color:burlywood'>处理中</span>",
        self::FEED_STATIC_DEALED   => "<span style='color: green'>已处理</span>",
    ] ;

    //审核状态
    CONST FEED_VERIFY_ARR = [
        self::FEED_VERIFY_NOT_VERIFY => "<span style='color: red'>未审核</span>",
        self::FEED_VERIFY_VERIFYED   => "已审核",
    ] ;

    //评价状态
    CONST EVALU_STATUS_ARR = [
        self::EVALU_STATUS_ENABLE => "启用",
        self::EVALU_STATUS_DISABLE   => "不启用",
    ] ;



}
